package com.atguigu.chouxiang;

/*
Graphic它也有父类，默认是Object。父类可以不是抽象的。
 */
public abstract class Graphic {//图形类
    private String name;

    public Graphic() {
    }

    public Graphic(String name) {
        this.name = name;
    }

    //求面积
    public abstract double area();
}
